package com.xys.auth.mapper;

import com.xys.auth.bean.Traveller;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface TravellerMapper {

    @Select("select * from traveller where id in (select traveller_id from order_traveller where order_id=#{ordersId})")
    List<Traveller> findByOrdersId(@Param("ordersId") String ordersId);
}
